package com.ywy.svgtest;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity {

    private MapView viewMainChina;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();
    }

    private void initView() {
        viewMainChina = (MapView) findViewById(R.id.view_main_china);
        viewMainChina.setClickListener(new MapView.ClickListener() {
            @Override
            public void onClick(String name) {
                Toast.makeText(MainActivity.this , name , Toast.LENGTH_SHORT).show();
            }
        });
    }
}
